/**
 * 
 */
window.addEventListener('load', function(e) {
	modejs.mode = 'view';
	modejs.changeMode();
	
	document.getElementById('save').addEventListener('click', function(e) {
		alert('save!!');
	});
	
	document.getElementById('back').addEventListener('click', function(e) {
		alert('back!!');
	});
	
	document.getElementById('changeMode').addEventListener('click', function(e) {
		if(modejs.mode === 'view')
			modejs.mode = 'write';
		else
			modejs.mode = 'view';
		
		modejs.changeMode();
	});
});
